
export default {
  data() {
    return {
      fieldList: [
        { name: '标题', field: 'field1' },
        { name: '审批单编号', field: 'field2' },
        { name: '审批事项', field: 'field3' },
        { name: '申请人部门', field: 'field4' },
        { name: '申请人', field: 'field5' },
      ],
      
      approveStatusOption: [
        { label: '待审批', value: '1' },
        { label: '审批中', value: '2' },
        { label: '已完成', value: '3' },
      ],
      approveStatusEnum: {
        '1': '待审批',
        '2': '审批中',
        '3': '已完成',
      },

      columns: [
        { title: '序号', width: 50, customRender: (text, record, index) => `${index + 1}`, align: 'center', },
        { title: '审批状态', dataIndex: 'approveStatus', width: 100, scopedSlots: { customRender: 'approveStatus' }, ellipsis: true },
        { title: '申请时间', dataIndex: 'applyTime', width: 150, scopedSlots: { customRender: 'date' }, ellipsis: true },
        { title: '审批单编号', dataIndex: 'approveReceiptNum', width: 150, ellipsis: true },
        { title: '审批事项', dataIndex: 'approveItem', ellipsis: true },
        { title: '申请人部门', dataIndex: 'applicantDepartment', width: 120, ellipsis: true },
        { title: '申请人', dataIndex: 'applicant', width: 120, ellipsis: true },
        { title: '操作', dataIndex: 'action', width: 100, align: 'center', fixed: 'right', scopedSlots: { customRender: 'action' } }
      ]
    }
  }
}